const routes = [
  {
    path: '/',
    component: () => import('pages/Login.vue') // 登录页面作为独立页面
  },
  {
    path: '/',
    component: () => import('layouts/MainLayout.vue'),
    children: [
      { path: '', component: () => import('pages/Index.vue') },
      { path: 'index', component: () => import('pages/Index.vue') },
      { path: 'dataImport', component: () => import('pages/DataImportPage.vue') },
      // { path: 'esImport', component: () => import('pages/esImport.vue') },
      { path: 'esImport', component: () => import('pages/excelImport.vue') },
      { path: 'esAna', component: () => import('pages/EsAnaDisPlayResult.vue') },
      { path: 'known', component: () => import('pages/SearchQueryBuildAndQuery.vue') },
      { path: 'sqlgen', component: () => import('pages/SqlGen.vue') },
      { path: 'user-management', component: () => import('pages/UserManagement.vue') }
    ]
  },,

  // Always leave this as last one,
  // but you can also remove it
  {
    path: '*',
    component: () => import('pages/Error404.vue')
  }
]

export default routes
